<template>
  <div class="index">
    <!-- 顶部开奖台 -->
    <div class="cgi-box">
      <!-- <div class="lt-hov-bar hot">
        <div class="lt-hov-bar-hov" style="border-radius: 0 0 4px 4px">
          <a :href="navObj.content"><img style="height: 60%" src="@img/picture/mo.png" />{{
              navObj.title
            }}</a>
        </div>
        <div style="margin: 0 5px; border-radius: 0 0 4px 4px">
          <a :href="navObj.remark"><img style="height: 60%" src="@img/picture/hk.png" />{{
              navObj.link
            }}</a>
        </div>
      </div> -->
      <div class="hod" style="top:0px !important">
        <div class="menubox">
          <!-- <div class="kjbox">
            <a target="_blank" class="location_to" href="https://68308h.vip/?intr=31835">
              <img src="@img/picture/shouzhi.gif" />
              {{ lottery.content.txt1 }}</a>
          </div> -->
          <div class="history">
            {{ lottery.content.txt2 }}
          </div>
          <div class="kj-box">
            <div class="lottery-box">
              <div v-for="(item, index) in (
                  lottery1.content.txt1 || '06,09,02,33,08,03,29'
                ).split(',').splice(0,6)" :key="index" style="color: #fff; background: rgb(255, 0, 0)" :style="{
                  background:
                    index == 0 || index == 3
                      ? ' rgb(0, 153, 0)'
                      : index == 4
                      ? 'rgb(0, 0, 255)'
                      : 'rgb(255, 0, 0)',
                }">
                {{ item }}
              </div>
              <div style="
                  margin-left: 10px;
                  background: rgb(0, 153, 0);
                  color: #fff;
                ">
                {{ (
                  lottery1.content.txt1 || '06,09,02,33,08,03,29'
                ).split(',')[6] }}
              </div>
            </div>
            <div class="lottery-box">
              <div v-for="(item, index) in (
                  lottery1.content.txt2 || '猪,猴,兔,猴,鸡,虎,鼠'
                ).split(',').splice(0,6)" :key="index">
                {{ item }}
              </div>
              <div style="margin-left: 10px">
                {{ (
                  lottery1.content.txt2 || '猪,猴,兔,猴,鸡,虎,鼠'
                ).split(',')[6] }}
              </div>
            </div>
          </div>

          <div class="kj-tit">
            {{ lottery.content.txt5 }}

            <div class="record" @click="record">历史记录</div>
          </div>
        </div>
      </div>
    </div>
    <div class="clear"></div>
    <div id="tm" style="margin-top: 95px"></div>
    <div class="cgi-box">
      <!-- 广告  开始-->
      <img :src="item.files" v-for="(item, index) in datail25" :key="index" width="100%" alt="" />
      <!-- 广告  结束-->
      <div style="
          background: #8db0ff;
          text-align: center;
          color: #000;
          font-size: 18px;
          font-weight: bold;
          padding: 5px 0;
        ">
        {{ infoDetail.text1 }}
      </div>
      <div style="
          background: #435a9e;
          text-align: center;
          color: #ff0;
          font-size: 18px;
          font-weight: bold;
        ">
        {{ infoDetail.txt2 }}
      </div>
      <div style="
          background: #435a9e;
          text-align: center;
          color: #ff0;
          font-size: 18px;
          font-weight: bold;
        ">
        {{ infoDetail.txt3 }}
      </div>
      <div style="
          background: #435a9e;
          text-align: center;
          color: #fff;
          font-size: 18px;
          font-weight: bold;
        ">
        {{ infoDetail.txt4 }}
      </div>

      <div class="main clearfix" style="height: 30px">
        <a :href="item.link" v-for="(item, index) in navList" :key="index"><button class="fill" style="height: 30px">
            {{ item.title }}
          </button></a>
      </div>
    </div>
    <div class="lx">
      <div class="cgi-con-tit"><span>澳门六合天空 - 六肖六码</span></div>
      <div class="lx-jl">
        <ul>
          <li v-for="(item, index) in skyInfo.skyInfoItem1" :key="index">
            <font>{{ item.title }}:</font><span>{{ item.content.txt1 }}</span>{{ item.content.txt2 }}
          </li>
        </ul>
      </div>
      <div class="lx-zl">
        <ul class="lx-left">
          <li v-for="(item, index) in skyInfo.skyInfoItem2" :key="index">
            <font>{{ item.title }}:</font>{{ item.content.txt1 }}
          </li>
        </ul>
        <ul class="lx-right">
          <li v-for="(item, index) in skyInfo.skyInfoItem3" :key="index">
            <font>{{ item.title }}:</font>{{ item.content.txt1 }}
          </li>
        </ul>
      </div>
      <div class="l-ls"><b>六合天空-带你敛尽黑庄财富</b></div>
    </div>
    <div class="box" align="center" style="background: #000; padding: 0; overflow: hidden; font-weight: bold">
      <ul>
        <li style="width: 100%">
          <a target="_blank" rel="nofollow" href="/" style="font-size: 1.2rem; color: #ff0; background: #000">欲钱解生肖⭐️一句爆特码</a>
        </li>
      </ul>
    </div>
    <div class="box">
      <div class="cgi-con-tit">
        <span>一句爆特诗</span>
      </div>
      <dl class="cgi-dl ct">
        <dd v-for="(item, index) in poetry" :key="index">
          <p class="p1">
            {{ item.title }}<font>{{ item.content.txt1 }}</font>
          </p>
          <p class="p2">{{ item.content.txt2 }}</p>
          <p class="p3">{{ item.remark }}</p>
        </dd>

        <!-- 一句爆特 -->
      </dl>
    </div>
    <div class="box">
      <div class="cgi-con-tit">
        <span>数字解特码</span>
      </div>
      <dl class="cgi-dl ct center">
        <dd v-for="(item, index) in numList" :key="index">
          <p class="p1">{{ item.title }}</p>
          <p class="p2">{{ item.content }}</p>
        </dd>
        <div class="tips1">提示:(?)中的?均是1~12的整数</div>
      </dl>
    </div>

    <div class="box">
      <div class="cgi-con-tit">
        <span>精选28码</span>
      </div>
      <dl class="cgi-dl ct center">
        <dd v-for="(item, index) in selected" :key="index">
          <p class="p1">
            {{ item.title }}<span>{{ item.link }}</span>
          </p>
          <p class="p2">{{ item.content }}</p>
          <p class="p3">{{ item.remark }}</p>
        </dd>
        <div class="box">
          <div class="cgi-con-tit">
            <span>天空内部料</span>
          </div>
          <dl class="cgi-dl nb left">
            <dd v-for="(item, index) in insideInfo" :key="index">
              <p class="p1">
                {{ item.title }}开<font>{{
                  (item.link || "").replace("开", "").replace("准", "")
                }}</font>准
              </p>
              <p class="p2">{{ item.content }}</p>
              <p class="p2">{{ item.remark }}</p>
            </dd>
          </dl>
        </div>

        <a name="yqll"></a>
        <div class="box">
          <div class="cgi-con-tit">
            <span>六合欲钱料</span>
          </div>
          <dl class="cgi-dl nb left">
            <dd v-for="(item, index) in DesireList" :key="index">
              <p class="p1">{{ item.title }}</p>
              <p class="p2">
                <span>{{ item.link }}:<font>{{ item.content }}</font></span>
              </p>
              <p class="p2">
                <span>{{ item.remark }}</span>
              </p>
            </dd>
          </dl>
        </div>

        <div class="box">
          <div class="cgi-con-tit">
            <span>欲钱猜一肖</span>
          </div>
          <dl class="cgi-dl2 dd">
            <dd v-for="(item, index) in detail11" :key="index">
              {{ item.title }}<span>{{ item.content }}</span>{{ item.remark }}
            </dd>
          </dl>
        </div>

        <a name="mybt"></a>
        <div class="box">
          <div class="cgi-con-tit">
            <span>谜语解特肖</span>
          </div>
          <dl class="cgi-dl my">
            <dd>
              <p v-for="(item, index) in datail12.poetryItem1" :key="index">
                {{ item.title
                }}<b class="wblue">≤{{ item.content }}≥</b>解：<font>{{
                  item.remark
                }}</font>
              </p>
              <p class="wskyred" v-for="(item, index) in datail12.poetryItem2" :key="index">
                {{ item.title }}{{ item.content }}
              </p>
              <p class="wskyred" v-for="(item, index) in datail12.poetryItem3" :key="index">
                {{ item.title }}{{ item.content }}
              </p>
            </dd>
          </dl>
        </div>

        <!-- 平特计划 -->
        <div class="box">
          <div class="cgi-con-tit">
            <span>顶尖高手资料区 - <font>六合天空</font></span>
          </div>
          <div class="i35-wrap">
            <ul class="i35-title">
              <li :class="{ active: tableIndex == 1 ? true : false }" @click="tab(1)">
                站长推荐「重点15码」期期公开<img src="@img/picture/new.gif" />
              </li>
              <li :class="{ active: tableIndex == 2 ? true : false }" @click="tab(2)">
                站长推荐「平特一肖」首选计划<img src="@img/picture/new.gif" />
              </li>
            </ul>
            <marquee direction="up" height="120px">
              <div class="i35-con center">
                <div class="content" style="display: block" v-for="(item, index) in tabList" :key="index">
                  <span :style="{
                      color: item.remark == 2 ? '#000' : 'rgb(0, 0, 255)',
                      fontSize: item.remark == 2 ? '18px' : '16px',
                    }" v-html="item.title">
                  </span>
                </div>
              </div>
            </marquee>
          </div>
        </div>

        <div class="box bs">
          <div class="cgi-con-tit">
            <span>必开波色</span>
          </div>
          <ul>
            <li v-for="(item, index) in datail14" :key="index">
              {{ item.title }}【<b class="wr"> {{ item.content }}</b>】开<font>？{{ item.remark }}</font>准
            </li>
          </ul>
        </div>

        <div class="box">
          <a target="_blank" href="https://68308h.vip/?intr=31835"><img :src="datail15.files" width="100%" alt="" /></a>
        </div>
        <div class="box">
          <div class="cgi-con-tit">
            <span>澳门精品图库</span>
          </div>
        </div>
        <div class="box">
          <div class="tuzhi2">
            <ul>
              <li v-for="(item, index) in datail16" :key="index">
                <a style="text-decoration: none" target="_blank" :href="item.files"><img :src="item.files" />
                  <p>{{ item.title }}</p>
                </a>
              </li>
            </ul>
          </div>
        </div>
        <div class="box">
          <div class="tuzhi">
            <ul>
              <li v-for="(item, index) in datail17" :key="index">
                <a style="text-decoration: none" target="_blank" :href="item.files">{{ item.title }}</a>
              </li>
            </ul>
          </div>
        </div>

        <a name="tcbt"></a>
        <div class="box">
          <div class="cgi-con-tit">
            <span>填词爆特</span>
          </div>
          <dl class="cgi-dl nb center">
            <!-- 开始   请晚点再来看 -->

            <dd v-for="(item, index) in datail18" :key="index">
              <p v-html="
                  item.title.replace('${', '<font>').replace('}$', '</font>')
                "></p>
              <p class="p2">{{ item.content }}</p>
              <p class="p2">{{ item.link }}</p>
            </dd>
            <div class="box cgi-con">
              <div class="cgi-con-tit"><span>单双各四肖</span></div>

              <table width="100%" cellspacing="0" cellpadding="0" border="0" v-for="(item, index) in datail19" :key="index">
                <tbody>
                  <tr>
                    <td align="center">{{ item.title }}</td>
                    <td width="25%" class="cgi-con-bg">{{ item.content }}</td>
                    <td width="25%" class="cgi-con-bg">{{ item.link }}</td>
                    <td width="25%" align="center">
                      开：<font>{{ item.remark }}</font>
                    </td>
                  </tr>
                </tbody>
              </table>
              <!--结束-->
            </div>

            <a name="sxsx"></a>
            <!-- 生肖属性表 -->
            <div class="box sx grey-line">
              <div class="cgi-con-tit">
                <span style="
                    background: transparent;
                    margin: 0;
                    padding: 0;
                    font-size: 17px;
                    color: #ff0;
                    fot-weight: blod;
                  ">六合天空 - 生肖属性表</span>
              </div>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                    <th style="text-align: center">
                      2024龙年（十二生肖号码对照）
                    </th>
                  </tr>
                  <tr>
                    <td>
                      <ul class="sx1 clearfix">
                        <li v-for="(item, index) in datail20" :key="index">
                          <dl>
                            <dt>
                              {{ item.title }}
                              <img :src="item.files" width="40" height="40" />[冲 {{ item.link }}]
                            </dt>
                            <dd>
                              <div v-html="item.hs"></div>
                            </dd>
                          </dl>
                        </li>
                      </ul>
                    </td>
                  </tr>
                </tbody>
              </table>

              <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <colgroup>
                  <col width="50" />
                  <col width="" />
                </colgroup>
                <tbody>
                  <tr>
                    <th colspan="2" style="text-align: center">五行对照</th>
                  </tr>
                  <tr v-for="(item, index) in datail21" :key="index">
                    <td align="center">
                      <font color="#ffcc00" v-if="item.title.indexOf('金')>-1">{{ item.title }}</font>
                      <font color="#33cc33" v-if="item.title.indexOf('木')>-1">{{ item.title }}</font>
                      <font color="#3399ff" v-if="item.title.indexOf('水')>-1">{{ item.title }}</font>
                      <font color="#ff6600" v-if="item.title.indexOf('火')>-1">{{ item.title }}</font>
                      <font color="#cc9900" v-if="item.title.indexOf('土')>-1">{{ item.title }}</font>
                    </td>
                    <td class="a-left">
                      <div v-html="item.hs"></div>
                    </td>
                  </tr>
                </tbody>
              </table>

              <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <colgroup>
                  <col width="50" />
                  <col width="" />
                </colgroup>
                <tbody>
                  <tr>
                    <th colspan="2" style="text-align: center">波色</th>
                  </tr>
                  <tr v-for="(item, index) in datail22" :key="index">
                    <td align="center">
                      <font v-if="item.title.indexOf('红')>-1" :color="item.title.indexOf('红')>-1?'#ff0000':'#000'">{{ item.title }}</font>
                      <font v-if="item.title.indexOf('蓝')>-1" :color="item.title.indexOf('蓝')>-1?'#3366ff':'#000'">{{ item.title }}</font>
                      <font v-if="item.title.indexOf('绿')>-1" :color="item.title.indexOf('绿')>-1?'#009933':'#000'">{{ item.title }}</font>
                    </td>
                    <td class="a-left" v-if="item.title.indexOf('红')>-1">
                      <span v-for="(s, i) in item.content.split(',')" :key="i" style="background:#ff0000;color:#fff;">{{s}}</span>
                    </td>
                    <td class="a-left" v-if="item.title.indexOf('蓝')>-1">
                      <span v-for="(s, i) in item.content.split(',')" :key="i" style="background:#3366ff;color:#fff;">{{s}}</span>
                    </td>
                    <td class="a-left" v-if="item.title.indexOf('绿')>-1">
                      <span v-for="(s, i) in item.content.split(',')" :key="i" style="background:#009933;color:#fff;">{{s}}</span>
                    </td>
                  </tr>
                </tbody>
              </table>

              <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <colgroup>
                  <col width="50" />
                  <col width="" />
                </colgroup>
                <tbody>
                  <tr>
                    <th colspan="2" style="text-align: center">合数单双</th>
                  </tr>
                  <tr v-for="(item, index) in datail23" :key="index">
                    <td align="center">
                      <font color="#3366ff">{{ item.title }}</font>
                    </td>
                    <td class="a-left">
                      <div v-html="item.hs"></div>
                    </td>
                  </tr>
                </tbody>
              </table>

              <table style="text-align: center" width="100%" cellspacing="0" cellpadding="0" border="0">
                <colgroup>
                  <col width="100%" />
                  <col width="" />
                </colgroup>
                <tbody>
                  <tr>
                    <th style="text-align: center">生肖属性</th>
                  </tr>
                  <tr v-for="(item, index) in datail24" :key="index">
                    <td>
                      <font color="#3366ff">{{ item.title }}：</font>{{ item.content }}
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="box">
              <div class="cont center" style="color: #000">
                {{ dbbq.title }}
              </div>
            </div>
          </dl>
        </div>
      </dl>
    </div>
  </div>
</template>

<script>
import moment from "moment";
import $ from "@js/jquery.min.js";
import "@js/i5scroll";
$(".i35-title li").click(function () {
  $(this).addClass("active").siblings().removeClass("active");
  $(".content").eq($(this).index()).show().siblings(".content").hide();
});
$(".scroll").i5Scroll();
import { getList } from "./request/api";
export default {
  data () {
    return {
      navObj: {},
      lottery: {},
      lottery1: {},
      infoDetail: {}, //站点信息
      navList: {}, //4、站点导航
      skyInfo: {}, //5、澳门六合天空 - 六肖六码
      poetry: [], //6、一句爆特诗
      numList: [], //7、数字解特码
      selected: [], //8、精选28码
      insideInfo: [], //9、内幕资料
      DesireList: [], // 10.六合欲钱料
      detail11: [], //11、欲钱猜一肖
      datail12: [], //12.谜语解特肖
      datail13: [], //13顶尖高手资料区
      datail14: [],
      datail15: {},
      datail16: [], //16、澳门精品图库
      datail17: [], //17、文字列表
      datail18: [], //18、填词爆特
      datail19: [], //19、单双各四肖
      datail20: [], //19、单双各四肖
      datail21: [], //五行对照
      datail22: [], //五行对照
      datail23: [], //24、单双各四肖
      datail24: [], //24、单双各四肖

      datail25: [], //25、单双各四肖
      tableIndex: 1,
      tabList: [],
      dbbq: {},
    };
  },
  mounted () {
    this.getListFn();
  },
  methods: {
    getListFn () {
      let params = {
        timesTamp: "",
        mac: "",
        ip: "",
        sign: "",
        version: "",
        token: "",
        title: "",
        type: "",
        content: "",
        status: "",
        orderBy: "create_time",
        isDesc: false,
      };
      let navListItem = [];
      let skyInfoItem1 = []; //上半部分
      let skyInfoItem2 = []; //六肖
      let skyInfoItem3 = []; //六码
      let poetryItem1 = [];
      let poetryItem2 = [];
      let poetryItem3 = [];
      getList(params).then((res) => {
        res.data.forEach((item) => {
          //顶部导航
          if (item.type == 25) {
            window.localStorage.setItem("bg", item.files);
          } else if (item.type == 0) {
            this.navObj = item;
          } else if (item.type == 1) {
            item.content = JSON.parse(item.content);
            item.content.txt3 = item.content.txt3.split(",");
            item.content.txt4 = item.content.txt4.split(",");
            item.filed1 = item.content.txt3[item.content.txt3.length - 1];
            item.filed2 = item.content.txt4[item.content.txt4.length - 1];
            item.content.txt3 = item.content.txt3.slice(0, -1);
            item.content.txt4 = item.content.txt4.slice(0, -1);
            this.lottery = item;
          } else if (item.type == "2t") {
            const aa = item.remark === moment(new Date()).format("YYYY-MM-DD");
            if (aa) {
              this.lottery1.content = JSON.parse(item.content);
              this.lottery1.title = item.title;
            }
          } else if (item.type == 2) {
            this.datail25.push(item);
          } else if (item.type == 3) {
            this.infoDetail = JSON.parse(item.content);
            this.infoDetail = item.content;
          } else if (item.type == 4) {
            navListItem.push(item);
          } else if (item.type == 5) {
            item.content = JSON.parse(item.content);
            if (item.remark == 1) {
              skyInfoItem1.push(item);
            } else if (item.remark == 2) {
              skyInfoItem2.push(item);
            } else if (item.remark == 3) {
              skyInfoItem3.push(item);
            }
          } else if (item.type == 6) {
            item.content = JSON.parse(item.content);
            this.poetry.push(item);
          } else if (item.type == 7) {
            // item.content = JSON.parse(item.content);
            this.numList.push(item);
          } else if (item.type == 8) {
            this.selected.push(item);
          } else if (item.type == 9) {
            this.insideInfo.push(item);
          } else if (item.type == 10) {
            this.DesireList.push(item);
          } else if (item.type == 11) {
            this.detail11.push(item);
          } else if (item.type == 12) {
            if (item.link == 1) {
              //谜语
              poetryItem1.push(item);
            } else if (item.link == 2) {
              //本期谜底
              poetryItem2.push(item);
            } else if (item.link == 3) {
              //上期谜底
              poetryItem3.push(item);
            }
          } else if (item.type == 13) {
            this.datail13.push(item);
          } else if (item.type == 14) {
            this.datail14.push(item);
          } else if (item.type == 15) {
            this.datail15 = item;
          } else if (item.type == 16) {
            this.datail16.push(item);
          } else if (item.type == 17) {
            this.datail17.push(item);
          } else if (item.type == 18) {
            this.datail18.push(item);
          } else if (item.type == 19) {
            this.datail19.push(item);
          } else if (item.type == 20) {
            this.datail20.push(item);
          } else if (item.type == 21) {
            this.datail21.push(item);
          } else if (item.type == 22) {
            this.datail22.push(item);
          } else if (item.type == 23) {
            this.datail23.push(item);
          } else if (item.type == 24) {
            this.datail24.push(item);
          } else if (item.type == 26) {
            this.dbbq = item;
          }
        });


        if (this.datail23.length > 0) {
          for (let index = 0; index < this.datail23.length; index++) {
            const e1 = this.datail23[index]
            e1.hs = ''
            if (e1.content) {
              for (let j = 0; j < e1.content.split(',').length; j++) {
                const e2 = e1.content.split(',')[j]
                const has = this.datail22.find(e => e.content.split(',').includes(e2))
                if (has.title.indexOf('红') > -1) {
                  e1.hs += `<span style="background:#ff0000;color:#fff">${e2}</span>`
                }
                if (has.title.indexOf('蓝') > -1) {
                  e1.hs += `<span style="background:#3366ff;color:#fff">${e2}</span>`
                }
                if (has.title.indexOf('绿') > -1) {
                  e1.hs += `<span style="background:#009933;color:#fff">${e2}</span>`
                }
              }
            }
          }
        }

        if (this.datail21.length > 0) {
          for (let index = 0; index < this.datail21.length; index++) {
            const e1 = this.datail21[index]
            e1.hs = ''
            if (e1.content) {
              for (let j = 0; j < e1.content.split(',').length; j++) {
                const e2 = e1.content.split(',')[j]
                const has = this.datail22.find(e => e.content.split(',').includes(e2))
                if (has.title.indexOf('红') > -1) {
                  e1.hs += `<span style="background:#ff0000;color:#fff">${e2}</span>`
                }
                if (has.title.indexOf('蓝') > -1) {
                  e1.hs += `<span style="background:#3366ff;color:#fff">${e2}</span>`
                }
                if (has.title.indexOf('绿') > -1) {
                  e1.hs += `<span style="background:#009933;color:#fff">${e2}</span>`
                }
              }
            }
          }
        }

        if (this.datail20.length > 0) {
          for (let index = 0; index < this.datail20.length; index++) {
            const e1 = this.datail20[index]
            e1.hs = ''
            if (e1.remark) {
              for (let j = 0; j < e1.remark.split(',').length; j++) {
                const e2 = e1.remark.split(',')[j]
                const has = this.datail22.find(e => e.content.split(',').includes(e2))
                if (has.title.indexOf('红') > -1) {
                  e1.hs += `<span style="background:#ff0000;color:#fff">${e2}</span>`
                }
                if (has.title.indexOf('蓝') > -1) {
                  e1.hs += `<span style="background:#3366ff;color:#fff">${e2}</span>`
                }
                if (has.title.indexOf('绿') > -1) {
                  e1.hs += `<span style="background:#009933;color:#fff">${e2}</span>`
                }
              }
            }
          }
        }

        this.navList = navListItem;
        this.skyInfo = {
          skyInfoItem1,
          skyInfoItem2,
          skyInfoItem3,
        };
        this.datail12 = {
          poetryItem1,
          poetryItem2,
          poetryItem3,
        };
        this.tab(1);
        console.log(this.datail22, "---   this.poetry--");

        console.log(res);
      });
    },

    colorFn (m) {
      console.log(m, "--m----");

      const mArr = m.remark.split(",");
      console.log(mArr, "-mArr---");

      let htmlStr = "";
      if (mArr.length > 0) {
        mArr.forEach((element) => {
          let color = "$f00";
          if (element.indexOf("a{") > -1) {
            color = "#f00";
            htmlStr += element
              .replace(
                "a{",
                '<span style="background-color:' + color + ';color:#fff">'
              )
              .replace("}a", "</span>");
          }

          if (element.indexOf("b{") > -1) {
            color = "#3366ff";
            htmlStr += element
              .replace(
                "b{",
                '<span style="background-color:' + color + ';color:#fff">'
              )
              .replace("}b", "</span>");
          }

          if (element.indexOf("c{") > -1) {
            color = "#009933";
            htmlStr += element
              .replace(
                "c{",
                '<span style="background-color:' + color + ';color:#fff">'
              )
              .replace("}c", "</span>");
          }
        });
        m.remark1 = htmlStr;
      }
      return m;
    },
    color21Fn (m) {
      const mArr = m.content.split(",");
      let htmlStr = "";
      if (mArr.length > 0) {
        mArr.forEach((element) => {
          let color = "#f00";
          if (element.indexOf("a{") > -1) {
            color = "#f00";
            htmlStr += element
              .replace(
                "a{",
                '<span style="background:' + color + ';color:#fff">'
              )
              .replace("}a", "</span>");
          }

          if (element.indexOf("b{") > -1) {
            color = "#3366ff";
            htmlStr += element
              .replace(
                "b{",
                '<span style="background:' + color + ';color:#fff">'
              )
              .replace("}b", "</span>");
          }

          if (element.indexOf("c{") > -1) {
            color = "#009933";
            htmlStr += element
              .replace(
                "c{",
                '<span style="background:' + color + ';color:#fff">'
              )
              .replace("}c", "</span>");
          }
        });
        m.content1 = htmlStr;
      }
      return m;
    },
    color23Fn (m) {
      const mArr = m.content.split(",");
      let htmlStr = "";
      if (mArr.length > 0) {
        mArr.forEach((element) => {
          let color = "#f00";
          if (element.indexOf("a{") > -1) {
            color = "#f00";
            htmlStr += element
              .replace(
                "a{",
                '<span style="background:' + color + ';color:#fff">'
              )
              .replace("}a", "</span>");
          }

          if (element.indexOf("b{") > -1) {
            color = "#3366ff";
            htmlStr += element
              .replace(
                "b{",
                '<span style="background:' + color + ';color:#fff">'
              )
              .replace("}b", "</span>");
          }

          if (element.indexOf("c{") > -1) {
            color = "#009933";
            htmlStr += element
              .replace(
                "c{",
                '<span style="background:' + color + ';color:#fff">'
              )
              .replace("}c", "</span>");
          }
        });
        m.content1 = htmlStr;
      }
      return m;
    },
    color22Fn (m) {
      console.log(m, "--m---");

      const mArr = m.content.split(",");
      let htmlStr = "";
      let color = "#f00";

      if (mArr.length > 0) {
        mArr.forEach((element) => {
          if (m.title.indexOf("红") > -1) {
            color = "#f00";
          } else if (m.title.indexOf("绿") > -1) {
            color = "#009933";
          } else if (m.title.indexOf("蓝") > -1) {
            color = "#3366ff";
          } else {
            color = "#3366ff";
          }
          htmlStr +=
            '<span style="background:' +
            color +
            ';color:#fff">' +
            element +
            "</span>";
        });
        m.color1 = color;
        m.content1 = htmlStr;
      }
      return m;
    },
    color13Fn (element) {
      let htmlStr = "";
      let color = "#f00";
      if (element.indexOf("${") > -1) {
        color = "red";
        htmlStr += element
          .replace("${", '<span style="color:' + color + '">')
          .replace("}$", "</span>");

        element = htmlStr;
      }
      return element;
    },
    tab (num) {
      let list = [];
      this.tableIndex = num;
      this.datail13.forEach((item) => {
        item.title = this.color13Fn(item.title);

        if (item.content == num) {
          list.push(item);
        }
      });
      this.tabList = list;
    },
    record () {
      this.$router.push("/record");
    },
  },
};
</script>

<style>
.index {
  width: 730px;
  margin: 0px auto;
}
li {
  list-style: none;
}
.i35-wrap {
  margin: 0 auto 8px;
  width: auto;
  vertical-align: top;
  border-radius: 4px;
  background-color: #fff;
  font-size: 12px;
}
.i35-title {
  display: flex;
  border-bottom: 2px solid rgb(99, 65, 165);
  line-height: 40px;
}
.i35-title li {
  text-align: center;
  flex: 1 1 1px;
  cursor: pointer;
  padding: 10px 30px;
  color: #000;
  font-size: 12px;
  background-color: #fffded;
}
.i35-title li.active {
  font-size: 15px;
  color: #0ff;
  background-color: #000;
}
.i35-title img {
  border: 0;
  width: 24px;
  height: 12px;
}
.i35-con .content {
  display: none;
  padding: 20px;
  background-color: #fffded;
}
.i35-con .content li {
  font-size: 18px;
  height: 30px;
  line-height: 30px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-all;
  overflow: hidden;
}
.i35-con .content p {
  color: #00f;
  font-size: 15px;
  height: auto;
  line-height: 30px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-all;
  overflow: hidden;
}
.i35-con .content b {
  color: #f00;
  font-weight: bold;
}
.i35-con .content font {
  background-color: #ff0;
  font-weight: bold;
}
.i35-con .content img {
  border: 0;
  width: 60px;
  height: 16px;
}
@media (min-width: 320px) {
  .i35-title {
    line-height: 17px;
  }
  .i35-title li.active {
    font-size: 14px;
  }
  .i35-title li {
    padding: 12px 0px;
  }
  .i35-con .content {
    padding: 4px 4px;
  }
  .i35-con .content li {
    font-size: 14px;
  }
  .i35-con .content p {
    font-size: 12px;
  }
}
@media (min-width: 360px) {
  .i35-title {
    line-height: 14px;
  }
  .i35-title li.active {
    font-size: 14px;
  }
  .i35-title li {
    padding: 12px 0px;
  }
  .i35-con .content {
    padding: 6px 6px;
  }
  .i35-con .content li {
    font-size: 14px;
  }
  .i35-con .content p {
    font-size: 12px;
  }
}
@media (min-width: 375px) {
  .i35-title {
    line-height: 17px;
  }
  .i35-title li.active {
    font-size: 16px;
  }
  .i35-title li {
    padding: 12px 0px;
  }
  .i35-con .content {
    padding: 6px 6px;
  }
  .i35-con .content li {
    font-size: 17px;
  }
  .i35-con .content p {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .i35-title {
    line-height: 35px;
  }
  .i35-title li.active {
    font-size: 18px;
  }
  .i35-title li {
    padding: 12px 0px;
  }
  .i35-con .content {
    padding: 9px 9px;
  }
  .i35-con .content li {
    font-size: 19px;
  }
  .i35-con .content p {
    font-size: 16px;
  }
}
.tuzhi2 {
  text-align: center;
}
.tuzhi2 ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 5px;
}
.tuzhi2 ul li {
  width: 50%;
  padding: 5px;
  box-sizing: border-box;
  cursor: pointer;
}
.tuzhi2 ul li img {
  width: 100%;
  height: 250px;
}
@media screen and (max-width: 750px) {
  .tuzhi2 ul {
    padding: 3px;
  }
  .tuzhi2 ul li {
    padding: 3px;
  }
}
@media screen and (max-width: 500px) {
  .tuzhi2 ul li img {
    height: 200px;
  }
}
@media screen and (max-width: 450px) {
  .tuzhi2 ul li img {
    height: 150px;
  }
}
@media screen and (max-width: 400px) {
  .tuzhi2 ul li img {
    height: 140px;
  }
}
.tuzhi2 ul li p {
  padding: 5px 0;
  background: #f5f5f5;
}
.tuzhi {
  text-align: center;
  padding: 2px;
}
.tuzhi ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 5px;
}
.tuzhi ul li {
  width: 33.33%;
  padding: 5px;
  box-sizing: border-box;
}
.tuzhi ul li a {
  display: block;
  padding: 7px 0;
  border: solid 1px #ddd;
  border-radius: 5px;
}
.tuzhi-more {
  margin-bottom: 10px;
  padding: 0 10px;
}
.tuzhi-more a {
  display: block;
  padding: 5px 0;
  color: #fff;
  text-align: center;
  font-size: 18px;
  border-radius: 5px;
  background: #f00;
}
@media screen and (max-width: 750px) {
  .tuzhi ul {
    padding: 3px;
  }
  .tuzhi ul li {
    width: 33.33%;
    padding: 3px;
    box-sizing: border-box;
  }
  .tuzhi-more a {
    font-size: 14px;
  }
}
.history {
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
  border-top: solid 1px #ddd;
  background: #eee;
  overflow: hidden;
}
.lottery-box {
  display: flex;
  align-items: center;
}
.lottery-box > div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px #ddd;
  background: #fff;
}
.kj-box {
  padding: 5px 0;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #eee;
  background: #f8f8f8;
}
.kj-tit {
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
  border-top: solid 1px #ddd;
  background: #eee;
  overflow: hidden;
}
.a-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.kj-tit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.record {
  color: red;
  cursor: pointer;
}
</style>
